import request from '@/utils/request'

//查全部
export function getList(params) {
  return request({
    url: '/set/depManage/list',
    method: 'get',
    params
  })
}
//添加数据  addDep
export function addDep(data) {
  return request({
    url: '/set/depManage/addDep',
    method: 'post',
    data
  })
}
//修改数据  editDep
export function editDep(data) {
  return request({
    url: '/set/depManage/editDep',
    method: 'post',
    data
  })
}
//是否有分类车间hasChildren
export function hasChildren(params) {
  return request({
    url: '/set/depManage/hasChildren',
    method: 'get',
    params
  })
}
//单个删除depId
export function del(params) {
  return request({
    url: '/set/depManage/depId',
    method: 'get',
    params
  })
}
